<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Whisper: CRiffWave Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Whisper
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-methods">Private Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">CRiffWave Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="CRiffWave" -->
<p><code>#include &lt;<a class="el" href="riff__wave_8h_source.html">riff_wave.h</a>&gt;</code></p>

<p><a href="classCRiffWave-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCRiffWave_1_1SDataChunk.html">SDataChunk</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structCRiffWave_1_1SFormatChunk.html">SFormatChunk</a></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#af7cb2859bae8cc8741fb5b5cea270d46">CRiffWave</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a45ca46c2884a859ae48c93af05641088">~CRiffWave</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#ab4b2b41c42b9f0ffc676bc0502281bd1">open</a> (const char *pFilename)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a05b57daa4a7324d771be4aa0bebf192c">close</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#ad0c6907ca7701143404432cdf58a99c2">getWaveInfo</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a25877409f6b4c22be609f3a4405bcfc4">sampleCount</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a1c23e8ffd759ebee0a3d068100a7da9d">frameCount</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a647459735e2ed86e24af62db71a31501">channels</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#af186e7211f37fb5eb767a5eece3a66b5">frameRate</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a3559c06f83db0449485b25d0306c0a08">bitsPerSample</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a35422c38e7ead166850cd801d06e568b">bytePerSample</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a4a0c3065a19d754f48a5ddb3d9f83ab0">bytePerFrame</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceNWaveFormatTag.html#a984a591ddf2ea06019b5881d5b83364d">NWaveFormatTag::EFormatTag</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a0699c31cbe0cebdfda1dbdef928abdd7">getFormatTag</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a6c7f59a56f8e4073b419f75c60d6002d">begin</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a717df5922e4386722efab8c913ba1820">getNextSamples</a> (void *pSamples, unsigned int pCount, unsigned int &amp;pStartOffset)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a7401a7f3e13c02ec289222a34724a1da">readSamples</a> (void *pSamples, unsigned int pOffset, unsigned int pCount)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#afc325e0a787a5068ee2a3cbeca68d784">writeSamples</a> (void *pSamples, unsigned int pOffset, unsigned int pCount)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#ab59a272f8efaa59beb6820fd8551463c">flipEverySecondSample</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-methods"></a>
Private Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#aea2b9dd65ba7d5715813bcf5ff5a3db3">openWave</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">std::fstream&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a5b6a2f65939fb489c62c5c5090aa3f5b">mWav</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structCRiffWave_1_1SFormatChunk.html">CRiffWave::SFormatChunk</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a8e5b898571dc615d83aefe1b4d4b21e4">mFormat</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="structCRiffWave_1_1SDataChunk.html">CRiffWave::SDataChunk</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCRiffWave.html#a105766db7b33ada4eee53ba6c0f0733b">mData</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>infos from: <a href="http://www.piclist.com/techref/io/serial/midi/wave.html">http://www.piclist.com/techref/io/serial/midi/wave.html</a></p>
<p>sample sample sample frame 0 frame 1 frame N _____ _____ _____ _____ _____ _____ | ch1 | ch2 | ch1 | ch2 | . . . | ch1 | ch2 | |_____|_____|_____|_____| |_____|_____| _____ | | = one sample point |_____|</p>
<p>channels 1 2 _________ _________ | left | right | stereo | | | |_________|_________|</p>
<p>1 2 3 _________ _________ _________ | left | right | center | 3 channel | | | | |_________|_________|_________|</p>
<p>1 2 3 4 _________ _________ _________ _________ | front | front | rear | rear | quad | left | right | left | right | |_________|_________|_________|_________|</p>
<p>1 2 3 4 _________ _________ _________ _________ | left | center | right | surround| 4 channel | | | | | |_________|_________|_________|_________|</p>
<p>1 2 3 4 5 6 _________ _________ _________ _________ _________ _________ | left | left | center | right | right |surround | 6 channel | center | | | center | | | |_________|_________|_________|_________|_________|_________| </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="af7cb2859bae8cc8741fb5b5cea270d46"></a><!-- doxytag: member="CRiffWave::CRiffWave" ref="af7cb2859bae8cc8741fb5b5cea270d46" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CRiffWave::CRiffWave </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a45ca46c2884a859ae48c93af05641088"></a><!-- doxytag: member="CRiffWave::~CRiffWave" ref="a45ca46c2884a859ae48c93af05641088" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">CRiffWave::~CRiffWave </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a6c7f59a56f8e4073b419f75c60d6002d"></a><!-- doxytag: member="CRiffWave::begin" ref="a6c7f59a56f8e4073b419f75c60d6002d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CRiffWave::begin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Set the iterator to the first sample.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True for success. </dd></dl>

</div>
</div>
<a class="anchor" id="a3559c06f83db0449485b25d0306c0a08"></a><!-- doxytag: member="CRiffWave::bitsPerSample" ref="a3559c06f83db0449485b25d0306c0a08" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::bitsPerSample </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a4a0c3065a19d754f48a5ddb3d9f83ab0"></a><!-- doxytag: member="CRiffWave::bytePerFrame" ref="a4a0c3065a19d754f48a5ddb3d9f83ab0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::bytePerFrame </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>bytePerSample and bytePerFrame would be the same value if there is only one channel. If the wave file is stereo then bytePerFrame is the double of bytePerSample. </p>

</div>
</div>
<a class="anchor" id="a35422c38e7ead166850cd801d06e568b"></a><!-- doxytag: member="CRiffWave::bytePerSample" ref="a35422c38e7ead166850cd801d06e568b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::bytePerSample </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Alignment of one sample. </p>

</div>
</div>
<a class="anchor" id="a647459735e2ed86e24af62db71a31501"></a><!-- doxytag: member="CRiffWave::channels" ref="a647459735e2ed86e24af62db71a31501" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::channels </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get number of channels. Would be return 1 for mono and 2 for stereo.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Number of channels. </dd></dl>

</div>
</div>
<a class="anchor" id="a05b57daa4a7324d771be4aa0bebf192c"></a><!-- doxytag: member="CRiffWave::close" ref="a05b57daa4a7324d771be4aa0bebf192c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CRiffWave::close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Close wav file.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True for success. </dd></dl>

</div>
</div>
<a class="anchor" id="ab59a272f8efaa59beb6820fd8551463c"></a><!-- doxytag: member="CRiffWave::flipEverySecondSample" ref="ab59a272f8efaa59beb6820fd8551463c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CRiffWave::flipEverySecondSample </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>A demo methode for the use of this class. Change every second sample.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True for successful execution. </dd></dl>

</div>
</div>
<a class="anchor" id="a1c23e8ffd759ebee0a3d068100a7da9d"></a><!-- doxytag: member="CRiffWave::frameCount" ref="a1c23e8ffd759ebee0a3d068100a7da9d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::frameCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="af186e7211f37fb5eb767a5eece3a66b5"></a><!-- doxytag: member="CRiffWave::frameRate" ref="af186e7211f37fb5eb767a5eece3a66b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::frameRate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0699c31cbe0cebdfda1dbdef928abdd7"></a><!-- doxytag: member="CRiffWave::getFormatTag" ref="a0699c31cbe0cebdfda1dbdef928abdd7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="namespaceNWaveFormatTag.html#a984a591ddf2ea06019b5881d5b83364d">NWaveFormatTag::EFormatTag</a> CRiffWave::getFormatTag </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a717df5922e4386722efab8c913ba1820"></a><!-- doxytag: member="CRiffWave::getNextSamples" ref="a717df5922e4386722efab8c913ba1820" args="(void *pSamples, unsigned int pCount, unsigned int &amp;pStartOffset)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::getNextSamples </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int &amp;&#160;</td>
          <td class="paramname"><em>pStartOffset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get the next samples from the current iterator position.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pSamples</td><td>Array to store the samples. </td></tr>
    <tr><td class="paramname">pCount</td><td>Count of samples which should be stored. Array pSamples must has a least pCount elements. One element is equal one sample and must have the size of <a class="el" href="classCRiffWave.html#a35422c38e7ead166850cd801d06e568b">bytePerSample()</a>. </td></tr>
    <tr><td class="paramname">pStartOffset</td><td>Stores the offset of the first sample. This value can be useful for pOffset from writeSamples methode. The offset is sample orientated and not byte orientated. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Count of read samples. </dd></dl>

</div>
</div>
<a class="anchor" id="ad0c6907ca7701143404432cdf58a99c2"></a><!-- doxytag: member="CRiffWave::getWaveInfo" ref="ad0c6907ca7701143404432cdf58a99c2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string CRiffWave::getWaveInfo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Get information about the opened wav file.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>String which contains the infos. </dd></dl>

</div>
</div>
<a class="anchor" id="ab4b2b41c42b9f0ffc676bc0502281bd1"></a><!-- doxytag: member="CRiffWave::open" ref="ab4b2b41c42b9f0ffc676bc0502281bd1" args="(const char *pFilename)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CRiffWave::open </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>pFilename</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Open a RIFF WAVE file and validate it.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the file is found and validated. </dd></dl>

</div>
</div>
<a class="anchor" id="aea2b9dd65ba7d5715813bcf5ff5a3db3"></a><!-- doxytag: member="CRiffWave::openWave" ref="aea2b9dd65ba7d5715813bcf5ff5a3db3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool CRiffWave::openWave </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7401a7f3e13c02ec289222a34724a1da"></a><!-- doxytag: member="CRiffWave::readSamples" ref="a7401a7f3e13c02ec289222a34724a1da" args="(void *pSamples, unsigned int pOffset, unsigned int pCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::readSamples </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Read a count of samples from the wav file. If the wav file has to channels then the samples are CH1, CH2, CH1, CH2, CH1, ... and so on.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pSamples</td><td>Array for storing the samples </td></tr>
    <tr><td class="paramname">pOffset</td><td>Offset of the first sample (unit: 1 sample). </td></tr>
    <tr><td class="paramname">pCount</td><td>Count of samples (unit: 1 sample). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Count of read samples. </dd></dl>

</div>
</div>
<a class="anchor" id="a25877409f6b4c22be609f3a4405bcfc4"></a><!-- doxytag: member="CRiffWave::sampleCount" ref="a25877409f6b4c22be609f3a4405bcfc4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::sampleCount </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Return count of samples. If the wave file has two channels then the value is the count of both channels.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Count of samples from all channels </dd></dl>

</div>
</div>
<a class="anchor" id="afc325e0a787a5068ee2a3cbeca68d784"></a><!-- doxytag: member="CRiffWave::writeSamples" ref="afc325e0a787a5068ee2a3cbeca68d784" args="(void *pSamples, unsigned int pOffset, unsigned int pCount)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int CRiffWave::writeSamples </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>pSamples</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pOffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>pCount</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Write a count of samples into the wav file. If the wav file has to channels then the samples must be ordered like CH1, CH2, CH1, CH2, CH1, ... and so on.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">pSamples</td><td>Array for samples which should be written. </td></tr>
    <tr><td class="paramname">pOffset</td><td>Offset of the first sample in the file (unit: 1 sample). </td></tr>
    <tr><td class="paramname">pCount</td><td>Count of samples (unit: 1 sample). </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Count of written samples. </dd></dl>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a105766db7b33ada4eee53ba6c0f0733b"></a><!-- doxytag: member="CRiffWave::mData" ref="a105766db7b33ada4eee53ba6c0f0733b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structCRiffWave_1_1SDataChunk.html">CRiffWave::SDataChunk</a>  <a class="el" href="classCRiffWave.html#a105766db7b33ada4eee53ba6c0f0733b">CRiffWave::mData</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8e5b898571dc615d83aefe1b4d4b21e4"></a><!-- doxytag: member="CRiffWave::mFormat" ref="a8e5b898571dc615d83aefe1b4d4b21e4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="structCRiffWave_1_1SFormatChunk.html">CRiffWave::SFormatChunk</a>  <a class="el" href="classCRiffWave.html#a8e5b898571dc615d83aefe1b4d4b21e4">CRiffWave::mFormat</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5b6a2f65939fb489c62c5c5090aa3f5b"></a><!-- doxytag: member="CRiffWave::mWav" ref="a5b6a2f65939fb489c62c5c5090aa3f5b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::fstream <a class="el" href="classCRiffWave.html#a5b6a2f65939fb489c62c5c5090aa3f5b">CRiffWave::mWav</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="riff__wave_8h_source.html">riff_wave.h</a></li>
<li><a class="el" href="riff__wave_8cxx.html">riff_wave.cxx</a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Wed Jan 25 2012 22:00:45 for Whisper by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
